@echo off

set def_dll_path="..\..\Output\Bin\Debug\"
set def_code_path="..\..\Code\"
set server_sharelib_def_dir_path=".\ShareLib\DEF\"
set client_dir_path=".\Client\"
set client_plugins_dir_path=".\Client\Assets\Plugins\"
set DeployPath="..\Output\Bin\Debug\"

rd /s /q %server_sharelib_def_dir_path%
xcopy /e /s /f /i /r /y /k %def_dll_path%*.* %server_sharelib_def_dir_path%Debug
xcopy /e /s /f /i /r /y /k %def_dll_path%*.* %DeployPath%

rd /s /q %client_plugins_dir_path%DEF
xcopy /f /i /r /y /k %def_dll_path%Pngcs.dll %client_plugins_dir_path%DEF\
xcopy /f /i /r /y /k %def_dll_path%ICSharpCode.SharpZipLib.dll %client_plugins_dir_path%DEF\
xcopy /e /s /f /i /r /y /k %def_code_path%Eb\EbCommon %client_plugins_dir_path%DEF\Eb\EbCommon
xcopy /e /s /f /i /r /y /k %def_code_path%Ec\EcEngine %client_plugins_dir_path%DEF\Ec\EcEngine
xcopy /e /s /f /i /r /y /k %def_code_path%ShareLib\Unity3DLib %client_dir_path%
rd /s /q %client_plugins_dir_path%DEF\Eb\EbCommon\obj
rd /s /q %client_plugins_dir_path%DEF\Eb\EbCommon\Properties
rd /s /q %client_plugins_dir_path%DEF\Ec\EcEngine\obj
rd /s /q %client_plugins_dir_path%DEF\Ec\EcEngine\Properties

@echo DEF done

pause
echo on

